import QtQuick 2.0
import QtQuick.Particles 2.0

//简单粒子
Rectangle {
    id: root;

    color: "black";

    //粒子系统
    ParticleSystem {
        id: particle;
    }

    //粒子发射器
    Emitter {
        id: emitter;

        anchors.centerIn: parent;
        width: 480;
        height: 480;
        system: particle;
        emitRate: 40;
        lifeSpan: 1000;
        lifeSpanVariation: 500;
        size: 16;
        endSize: 32;

        Tracer { color: 'green'; }
    }

    ItemParticle {
        system: particle;
        delegate: Rectangle {
            id: rect;
            width: 10; height: 10;
            color: "red"; radius: 10;
        }
    }

}
